<?php
header("Content-Type:text/html;charset=GB2312");

require_once 'MagicDB/DB.class.php';
$_config['MagicDB'] = array(
	'driver' => 'mysql',  //数据库驱动, 参看 http://www.php.net/manual/en/pdo.drivers.php
	'dsn' => 'mysql:dbname=test;host=localhost',
	'username' => 'root', 
	'password' => '123456',
//	'charset' => 'utf8',
//	'collate' => 'utf8_general_ci',
	'persistent' => false,  //是否使用长连接
	'options' => array(
		//PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
		), //额外选项
	);
var_dump( extension_loaded('pdo_mysql') );
	
//var_export( DB::getAll("select * from test222") );
$db = DB::getInstance()->db;
$re = $db->query("select * from kexoo_im.basic_tbl limit 15");
var_dump( $re->fetchAll() );


?>